package com.eunion.web.cms.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;

@Entity
@Table(name = "t_user_upgrade_log")
@NamedQuery(name = "TUserUpgradeLog.findAll", query = "SELECT t FROM TUserUpgradeLog t")
public class TUserUpgradeLog implements Serializable{
	private static final long serialVersionUID = -84729460750907443L;

	@Id
	private int id;
	
	private int userid;
	
	private String logicCode;
	
	private int logicLevel;
	
	private int beforeLevel;
	
	private int userlevel;
	
	private Date upgradeTime;
	
	private String message;
	
	private Date createtime;
	
	
	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	public int getUserid() {
		return userid;
	}


	public void setUserid(int userid) {
		this.userid = userid;
	}


	public String getLogicCode() {
		return logicCode;
	}


	public void setLogicCode(String logicCode) {
		this.logicCode = logicCode;
	}


	public int getLogicLevel() {
		return logicLevel;
	}


	public void setLogicLevel(int logicLevel) {
		this.logicLevel = logicLevel;
	}


	public int getBeforeLevel() {
		return beforeLevel;
	}


	public void setBeforeLevel(int beforeLevel) {
		this.beforeLevel = beforeLevel;
	}


	public int getUserLevel() {
		return userlevel;
	}


	public void setUserLevel(int userLevel) {
		this.userlevel = userLevel;
	}


	public Date getUpgradeTime() {
		return upgradeTime;
	}


	public void setUpgradeTime(Date upgradeTime) {
		this.upgradeTime = upgradeTime;
	}


	public String getMessage() {
		return message;
	}


	public void setMessage(String message) {
		this.message = message;
	}


	public Date getCreatetime() {
		return createtime;
	}


	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}
	
	public TUserUpgradeLog() {
		super();
	}

	public TUserUpgradeLog(int id, int userid, String logicCode, int logicLevel, int beforeLevel, int userLevel,
			Date upgradeTime, String message, Date createtime) {
		super();
		this.id = id;
		this.userid = userid;
		this.logicCode = logicCode;
		this.logicLevel = logicLevel;
		this.beforeLevel = beforeLevel;
		this.userlevel = userLevel;
		this.upgradeTime = upgradeTime;
		this.message = message;
		this.createtime = createtime;
	}


	@Override
	public String toString() {
		return "TUserUpgradeLog [id=" + id + ", userid=" + userid + ", logicCode=" + logicCode + ", logicLevel="
				+ logicLevel + ", beforeLevel=" + beforeLevel + ", userLevel=" + userlevel + ", upgradeTime="
				+ upgradeTime + ", message=" + message + ", createtime=" + createtime + "]";
	}
	
}
